package com.jrx.anytxn.transaction.bean;

import com.jrx.anytxn.transaction.entity.*;

import java.util.ArrayList;
import java.util.List;

/**
 * 手工交易调整保存bean
 *
 * @author : zhenghaopu
 * 2020/1/16
 */
public class ManuallyAdjustAccountSaveBean {

    /**
     * 要更新的还款计划
     */
    private AmRepaymentPlanInfo updateRepaymentPlanInfo;
    /**
     * 要更新的交易账户信息
     */
    private List<AmAccountMainInfo> updateAccList;

    /**
     * 要更新的累计账户信息
     */
    private List<AmInterestAccrualInfo> updateAccralList = new ArrayList<>();
    /**
     * 要更新的总账流水信息
     */
    private List<TlGlInterfaceInfo> tlGlInterfaceInfoList;

    /**
     * 要新增的交易账户信息
     */
    private TlTransactionInfo addTransInfo;

    /**
     * 要更新的贷款账户
     */
    private AmLoanAccountInfo updateLoanAcct;

    public AmRepaymentPlanInfo getUpdateRepaymentPlanInfo() {
        return updateRepaymentPlanInfo;
    }

    public void setUpdateRepaymentPlanInfo(AmRepaymentPlanInfo updateRepaymentPlanInfo) {
        this.updateRepaymentPlanInfo = updateRepaymentPlanInfo;
    }

    public List<AmAccountMainInfo> getUpdateAccList() {
        return updateAccList;
    }

    public void setUpdateAccList(List<AmAccountMainInfo> updateAccList) {
        this.updateAccList = updateAccList;
    }

    public List<TlGlInterfaceInfo> getTlGlInterfaceInfoList() {
        return tlGlInterfaceInfoList;
    }

    public void setTlGlInterfaceInfoList(List<TlGlInterfaceInfo> tlGlInterfaceInfoList) {
        this.tlGlInterfaceInfoList = tlGlInterfaceInfoList;
    }

    public TlTransactionInfo getAddTransInfo() {
        return addTransInfo;
    }

    public void setAddTransInfo(TlTransactionInfo addTransInfo) {
        this.addTransInfo = addTransInfo;
    }

    public List<AmInterestAccrualInfo> getUpdateAccralList() {
        return updateAccralList;
    }

    public void setUpdateAccralList(List<AmInterestAccrualInfo> updateAccralList) {
        this.updateAccralList = updateAccralList;
    }

    public AmLoanAccountInfo getUpdateLoanAcct() {
        return updateLoanAcct;
    }

    public void setUpdateLoanAcct(AmLoanAccountInfo updateLoanAcct) {
        this.updateLoanAcct = updateLoanAcct;
    }

    public void addUpdateAccral(AmInterestAccrualInfo updateAccral) {
        if(null != updateAccral) {
            updateAccralList.add(updateAccral);
        }
    }
}
